//解决路由跳转保错
import Router from 'vue-router'
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error=> error)}
import Vue from 'vue'
import App from './App.vue'
import {Button} from 'mint-ui'
import router from './router'
import store from './store'
import loading from './assets/imgs/loading.c1486d8.gif'
import VueLazyload from 'vue-lazyload'
import axios from 'axios'
import './assets/common.css'
import 'lib-flexible'
import './mock/mockServer' // 加载mockServer即可
import './filters/index'   //加载过滤器

Vue.use(VueLazyload, { // 内部自定义一个指令lazy
  loading
})
// 注册全局组件标签
Vue.component(Button.name, Button)  // <mt-button>
Vue.config.productionTip = false
Vue.prototype.$axios=axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
